package com.wyx.bean;

import com.fasterxml.jackson.databind.ObjectMapper;

public class Result {
    private String code;
    private String script;
    private DataObject data;

    public Result(String code, String script, DataObject data) {
        this.code = code;
        this.script = script;
    }
    //    public static void main(String[] args) {
//        // 创建一个Java对象
//        CustomObject customObject = new CustomObject("1", "login_successMsg", new DataObject("00000000000000000000140105122422", "140105122422", "太原市小店区武建平便利店", "武建平", "00000000000000000000000000000001", "00000000000000000000000000140105", "00000000000000000000000011140102", "0", "00000000000000000000000011140101", "mode_shanxi", "0", "10202207170000046810102", "140105122422", "CUSTOMER", "CUSTOMER"));
//
//        // 使用ObjectMapper将Java对象序列化为JSON字符串
//        ObjectMapper objectMapper = new ObjectMapper();
//        try {
//            String json = objectMapper.writeValueAsString(customObject);
//            System.out.println(json);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }


    // 定义一个数据对象
    static class DataObject {
        private String cust_uuid;
        private String license_code;
        private String cust_name;
        private String artificial_name;
        private String manage_unit_uuid;
        private String county_uuid;
        private String depart_uuid;
        private String is_report;
        private String corp_uuid;
        private String order_bussiness_mode;
        private String reset_pwd_flag;
        private String account_uuid;
        private String login_name;
        private String user_type;
        private String user_type_infos;

        public DataObject(String cust_uuid, String license_code, String cust_name, String artificial_name, String manage_unit_uuid, String county_uuid, String depart_uuid, String is_report, String corp_uuid, String order_bussiness_mode, String reset_pwd_flag, String account_uuid, String login_name, String user_type, String user_type_infos) {
            this.cust_uuid = cust_uuid;
            this.license_code = license_code;
            this.cust_name = cust_name;
            this.artificial_name = artificial_name;
            this.manage_unit_uuid = manage_unit_uuid;
            this.county_uuid = county_uuid;
            this.depart_uuid = depart_uuid;
            this.is_report = is_report;
            this.corp_uuid = corp_uuid;
            this.order_bussiness_mode = order_bussiness_mode;
            this.reset_pwd_flag = reset_pwd_flag;
            this.account_uuid = account_uuid;
            this.login_name = login_name;
            this.user_type = user_type;
            this.user_type_infos = user_type_infos;
        }
    }
}
